package com.opentae.data.mall.interfaces;

import com.opentae.core.mybatis.config.MyBatisRepository;
import com.opentae.core.mybatis.mapper.Mapper;
import com.opentae.data.mall.beans.AgentCount;
import com.opentae.data.mall.beans.MoShareProfit;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

import java.util.Date;

/**
 * 
 * Created by exampleCreater.
 */
@MyBatisRepository("tae_mall_moShareProfitMapper")
@Scope("singleton")
@Lazy(true)
public interface MoShareProfitMapper extends Mapper<MoShareProfit> {
    AgentCount agentCountByTime(@Param("agentId") Long agentId, @Param("fromTime") Date fromTime,@Param("toTime") Date toTime);
}
